package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.StationDtoEntity;

import java.util.List;

public class StationDtoAdapter extends BaseQuickAdapter<StationDtoEntity.ToolWork, BaseViewHolder> {


   public StationDtoAdapter(@Nullable List<StationDtoEntity.ToolWork> data) {
      super(R.layout.item_station,data);
   }

   @Override
   protected void convert(BaseViewHolder helper, StationDtoEntity.ToolWork item) {
      helper.setIsRecyclable(false);
      helper.setText(R.id.tvStation,item.getSTATION_NAME());
      helper.setText(R.id.tvCode,item.getTOOL_CODE());
      helper.setText(R.id.tvState,item.getIS_UP());
      helper.setText(R.id.tvTime,item.getUP_TIME());
      helper.setText(R.id.tvUser,item.getUP_USER());
   }
}
